package com.wang;

import com.wang.pojo.Person;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Springboot02Application {

    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(Springboot02Application.class, args);
        Person person = context.getBean("person", Person.class);
        System.out.println(person);
    }

}
